package com.car.loan.project.cm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.car.loan.project.cm.domain.CmDealer;
import com.car.loan.project.cm.domain.CmDealerAccount;
import com.car.loan.project.cm.util.select.DealerAccountBaseSelect;
import com.car.loan.project.cm.util.vo.SelectedAccountVo;
import com.car.loan.project.cm.util.vo.SelectedVo;
import java.util.Collection;
import java.util.List;

/**
 * 经销商账户Service接口
 * 
 * @author ruoyi
 * @date 2019-10-19
 */
public interface ICmDealerAccountService 
{
    /**
     * 查询经销商账户
     * 
     * @param id 经销商账户ID
     * @return 经销商账户
     */
    public CmDealerAccount selectCmDealerAccountById(Long id);

    /**
     * 查询经销商账户列表
     * 
     * @param cmDealerAccount 经销商账户
     * @return 经销商账户集合
     */
    public List<CmDealerAccount> selectCmDealerAccountList(CmDealerAccount cmDealerAccount);

    List<SelectedAccountVo> selectedPage(DealerAccountBaseSelect dealerAccountBaseSelect);


    /**
     * 新增经销商账户
     * 
     * @param cmDealerAccount 经销商账户
     * @return 结果
     */
    public int insertCmDealerAccount(CmDealerAccount cmDealerAccount);

    /**
     * 修改经销商账户
     * 
     * @param cmDealerAccount 经销商账户
     * @return 结果
     */
    public int updateCmDealerAccount(CmDealerAccount cmDealerAccount);

    /**
     * 批量删除经销商账户
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCmDealerAccountByIds(Collection<Long> ids);

    /**
     * 删除经销商账户信息
     * 
     * @param id 经销商账户ID
     * @return 结果
     */
    public int deleteCmDealerAccountById(Long id);
}
